From: Michael Welling Date: Sat, 4 Oct 2014 02:26:00 +0000 (+0100) Subject: Staging:iio:tsl2583 Switch from msleep to usleep range per timers-howto.txt X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~6168^2~39^2~1228^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e193385bf4fa1bdbafcc12eaea4f0e718aeae858;p=linux-4.9.git Staging:iio:tsl2583 Switch from msleep to usleep range per timers-howto.txt Signed-off-by: Michael Welling Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c index 8d46c92f6f64..de3c9d8e7722 100644 --- a/drivers/staging/iio/light/tsl2583.c +++ b/drivers/staging/iio/light/tsl2583.c @@ -451,7 +451,7 @@ static int taos_chip_on(struct iio_dev *indio_dev) } } - msleep(3); + usleep_range(3000, 3500); /* NOW enable the ADC * initialize the desired mode of operation */ utmp = TSL258X_CNTL_PWR_ON | TSL258X_CNTL_ADC_ENBL;